package com.xmwzw.catpu.viewmodel;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

/**
 * @author : wangzw
 * @date : 20-4-7下午5:25
 * @desc :
 */
public class DownloadViewModel extends BaseObservable {
    @Bindable
    public boolean showProgressBar;

    public void setShowProgressBar(boolean showProgressBar) {
        this.showProgressBar = showProgressBar;
       notifyChange();
    }

    @Bindable
    public boolean isShowProgressBar() {
        return showProgressBar;
    }

    @Bindable
    public int progress;

    public void setProgress(int progress) {
        this.progress = progress;
        notifyChange();
    }

    @Bindable
    public int getProgress() {
        return progress;
    }
}
